package com.stark.commons.spring.web.boot.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * eureka 配置项
 * @author Ben
 * @since 1.0.0
 * @version 1.0.0
 */
@ConfigurationProperties("eureka")
@Data
public class EurekaProperties {
	
	/** 服务端配置项 */
	private EurekaServerProperties server = new EurekaServerProperties();
	
	@Data
	public static class EurekaServerProperties {
		
		/** 启用上线事件监听器 */
		private boolean enableRegisteredEventListener = true;
		
		/** 启用续约事件监听器 */
		private boolean enableRenewedEventListener = true;
		
		/** 启用下线事件监听器 */
		private boolean enableCanceledEventListener = true;
		
	}

}
